package com.kb.mapper.sqlServer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kb.dto.InvoiceDetailsDTO;
import com.kb.dto.InvoiceSearchDTO;
import com.kb.dto.WaitingInvoiceDTO;
import com.kb.entity.crm.Customer;
import com.kb.entity.crm.Invoice;
import com.kb.entity.crm.LinkManOfCustomer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CrmInvoiceMapper extends BaseMapper<Invoice> {
    Page<Invoice> queryInvoice(Page<Invoice> page,InvoiceSearchDTO invoiceSearchDTO);

    List<InvoiceDetailsDTO> queryInvoiceDetails(String id);
    LinkManOfCustomer queryCustomerByCode(String code);
    Integer getTodaySequence(String currentDate);

    Page<WaitingInvoiceDTO> queryWaitingInvoice(Page<Invoice> page,InvoiceSearchDTO invoiceSearchDTO);
}